from django.conf.urls.defaults import patterns, include, url
from poll.views import poll_list, poll, get_poll_data, recieve_vote

urlpatterns = patterns('', 
    url(r'^$', poll_list, name='poll_list'),
    url(r'^(?P<poll_id>\d+)/$', poll, name='poll'),
    url(r'^ajax/poll_data/$', get_poll_data, name='get_poll_data'),
    url(r'^ajax/poll_data/(?P<poll_id>\d+)/$', get_poll_data, name='get_poll_data'),
    url(r'^ajax/vote/(?P<poll_id>\d+)/', recieve_vote, name='recieve_vote'),
    )

